package org.lazy.generate.common;

import java.util.List;

public class Page {
	private Long pageNo;
	private Long pageSize;
	private Long pageCount;
	private Long totalCount;
	
	private List<?> results;

	
	public Page(Long pageNo, Long pageSize, Long totalCount, List<?> results) {
		super();
		this.pageNo = pageNo;
		this.pageSize = pageSize;
		
		pageCount = totalCount/pageSize;
		Long p = totalCount%pageSize;
		if(p>0){
			pageCount +=1; 
		}
		this.totalCount = totalCount;
		this.results = results;
	}

	public Long getPageNo() {
		return pageNo;
	}

	public void setPageNo(Long pageNo) {
		this.pageNo = pageNo;
	}

	public Long getPageSize() {
		return pageSize;
	}

	public void setPageSize(Long pageSize) {
		this.pageSize = pageSize;
	}

	public Long getPageCount() {
		return pageCount;
	}

	public void setPageCount(Long pageCount) {
		this.pageCount = pageCount;
	}

	public Long getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(Long totalCount) {
		this.totalCount = totalCount;
	}

	public List<?> getResults() {
		return results;
	}

	public void setResults(List<?> results) {
		this.results = results;
	}

		
}
